package com.azt.api.pojo;

import com.azt.pojo.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Table(name = "u_cen_collection")
public class CenCollection extends BaseEntity {

	@Column(name = "cenMemberId")
	private Integer cenMemberId;

	@Column(name = "companyId")
    private Integer companyId;
	
	@Column(name = "stage")
    private Integer stage;
	
	@Column(name = "amount")
    private Double amount;
	
	@Column(name = "state")
    private Integer state;
	
	@Column(name = "collecttime")
	private Date collecttime;
	
	@Column(name = "proveImg")
	private String proveImg;
	
	@Column(name = "orderIds")
	private String orderIds;
	
	@Column(name = "operateid")
	private Integer operateid;
	
	public String getOrderIds() {
		return orderIds;
	}

	public void setOrderIds(String orderIds) {
		this.orderIds = orderIds;
	}

	@Transient
    private String ids;//id集合逗号隔开
    
	@Transient
    private String jd;//阶段逗号隔开
    
	@Transient
    private Double mon;//应收返点金额
    
	@Transient
    private String companyName;//公司名称
    
	@Transient
    private Date signintime;//签约时间
    
	@Transient
    private String jdName;//阶段名称
    
	@Transient
	private String opname;

	@Transient
	private Double alreadyAmount;
	
    public String getOpname() {
		return opname;
	}

	public void setOpname(String opname) {
		this.opname = opname;
	}

	public Integer getOperateid() {
		return operateid;
	}

	public void setOperateid(Integer operateid) {
		this.operateid = operateid;
	}

	public String getProveImg() {
		return proveImg;
	}

	public void setProveImg(String proveImg) {
		this.proveImg = proveImg;
	}

	public Date getCollecttime() {
		return collecttime;
	}

	public void setCollecttime(Date collecttime) {
		this.collecttime = collecttime;
	}

	public String getJdName() {
		if(this.jd!=null){
			String[] jdarr=this.jd.split(",");
	    	StringBuffer sb=new StringBuffer("");
	    	for (int i = 0; i < jdarr.length; i++) {
				sb.append(jdarr[i]+"阶段 ");
			}
	    	return sb.toString();
		}
    	return ""; 
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getJd() {
		return jd;
	}

	public void setJd(String jd) {
		this.jd = jd;
	}

	public Double getMon() {
		return mon;
	}

	public void setMon(Double mon) {
		this.mon = mon;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Date getSignintime() {
		return signintime;
	}

	public void setSignintime(Date signintime) {
		this.signintime = signintime;
	}

	public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

	public Integer getCenMemberId() {
		return cenMemberId;
	}

	public void setCenMemberId(Integer cenMemberId) {
		this.cenMemberId = cenMemberId;
	}

	public Integer getStage() {
        return stage;
    }

    public void setStage(Integer stage) {
        this.stage = stage;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

	public Double getAlreadyAmount() {
		return alreadyAmount;
	}

	public void setAlreadyAmount(Double alreadyAmount) {
		this.alreadyAmount = alreadyAmount;
	}
}